<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <title><?php echo $common[0]['title']?></title>
    <base href="<?php echo site_url('static/weixincard/'.$wechat['weixincardtpl'])?>/">
    <meta name="keywords" content="" />
    <meta itemprop="description" name="description" content="" />
    <link rel="stylesheet" type="text/css" href="css/base.css">
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <script src="<?php echo URLPRE?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/<?php echo TEMPLATE_NAME?>/mobile/js/slider.js"></script>
    <script type="text/javascript">
      $(function(){
          var slid = $("#slider").slider({
              loop: true
          });
      });
    </script>
</head>
<body>
<div class="global">
    <header>
        <div class="micro-header">
             <div class="box slider" id="slider">
        <?php
        $tpl = <<<TEMPLATE
<ul>
    {listinfo}<li><a href="{link}"> <img src="{pic}" alt="{title}"></a></li>{/listinfo}
</ul>
TEMPLATE;
        diy('glass_index_imagelist_topbar', 'imagelist', $tpl);
        ?>

      </div>

            <div class="m-store-header ">
                <form action="<?php echo  site_url('/mobile/line/index/').'/'?>" method="get" id="searchForm" accept-charset="utf-8">
                <div class="m3_search">
                    <input name="keyword" type="text" class="m3_search_txt" placeholder="想去哪儿，从这里开始......" />
                    <input type="submit" class="m3_search_btn" />
                </div>
                </form>
                <div class="m3_shezhi"><a href="<?php echo site_url('mobile/member/center');?>"><img src="images/shezhi.png" ></a></div>
            </div>
        </div>
    </header>
    <nav>
        <div class="micro-main-nav">
            <ul>
                <li><a href="<?php echo site_url('mobile/line?cat_id=2');?>"><span><i>1</i></span><br />
                        周边游</a></li>
                <li><a href="<?php echo site_url('mobile/line?cat_id=1');?>"><span><i>3</i></span><br />
                        国内游</a></li>
                <li><a href="<?php echo $ctrip_flight;?>"><span><i>2</i></span><br />
                        机票</a></li>
                <li><a href="<?php echo site_url('mobile/scenery/index');?>"><span><i>4</i></span><br />
                        门票</a></li>
            </ul>
        </div>
    </nav>

    <section id="webContent">
        <div class="banner-micro" id="banner">
            <div class="box">
                    <?php
                    $TEMPLATE = <<<HTML
<ul>
{listinfo}
<li><a href="{link}"><img src="{pic}" /></a></li>
{/listinfo}
</ul>
HTML;
                    diy('glass_index_imagelist_0001', 'imagelist', $TEMPLATE);
                    ?>
            </div>
            <div class="m-b-icon"> </div>
        </div>
        <div class="nav_1">

            <style>

                .nav_1{ height:100px;
                    width: 100%;
                    position: relative;
                    margin-bottom:10px;
                }
                .nav_1 a{
                    border:3px solid;
                    display:inline-block;
                    width:33%;
                    height:100px;
                    text-align:center;
                    line-height:90px;
                    float:left;
                    margin-left:0.5%;
                }
                .nav_1>a:nth-of-type(1){
                    color:#FFF;
                    background:#DF7C5C;
                    margin-left:0;
                }
                .nav_1>a:nth-of-type(2){
                    height:50px;
                    line-height:50px;
                    color:#FFF;
                    background:#E1A22C;
                }
                .nav_1>a:nth-of-type(3){
                    color:#FFF;
                    background:#1A9EAA;
                    height:50px;
                    line-height:50px;
                    position:absolute;
                    left:33%;
                    top:51px;
                }
                .nav_1>a:nth-of-type(4){
                    color:#FFF;
                    background:#28546B;
                    float:right;
                }
            </style>
            <?php
            $TEMPLATE = <<<HTML
{links}
<a target="_blank"  href="{link}" rel="nofollow">{name}</a>
{/links}
HTML;
            diy('glass_index_fontlist_01', 'fontlist', $TEMPLATE, 1, '<a>季度热门</a><a>今日特惠</a><a>超值订票</a><a>团购推荐</a>');
            ?>
        </div>
        <div class="hot-destination" id="hotRouteList1">
            <div class="de-title-line">
<?php
$template = <<<TEMPLATE
<ul>{links}<li><a href="{link}">{name}</a></li>{/links}</ul>
{title} >
TEMPLATE;

diy('glass3_index_fontli_001', 'fontlist', $template);
?>
            </div>
            <div class="de-content">
                <div class="de_content_img_1">
<?php
$TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_1{background-image:url({pic})}</style>
<a href="{link}"><p>查看更多</p><span>{sub_title}</span></a>
{/listinfo}
HTML;
diy('glass3_index_imagelist_01', 'imagelist', $TEMPLATE);
?>
                </div>
                <div class="de_content_img_2">
<!--                    <div class="de_content_img_2_1">-->
<!--                        <a href="#">-->
<!--                            <p>微山湖</p>-->
<!--                            <span>Weishanhu</span>-->
<!--                        </a>-->
<!--                    </div>-->

                    <?php
                    $TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_2_{aindex}{background-image:url({pic})}</style>
<div class="de_content_img_2_{aindex}">
<a href="{link}"><p>查看更多</p><span>{sub_title}</span></a>
</div>
{/listinfo}
HTML;
                    diy('glass3_index_imagelist_03', 'imagelist', $TEMPLATE);
                    ?>
                </div>
            </div>
        </div>
        <div class="hot-destination" id="hotRouteList2">
            <div class="de-title-line1">
                    <?php
                    $template = <<<TEMPLATE
<ul>{links}<li><a href="{link}">{name}</a></li>{/links}</ul>
{title} >
TEMPLATE;

                    diy('glass3_index_fontli_1002', 'fontlist', $template);
                    ?>
            </div>
            <div class="de-content">
                <div class="de_content_img_3">
                    <?php
                    $TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_3_{aindex}{background-image:url({pic})}</style>
<div class="de_content_img_3_{aindex}">
<a href="{link}"><p>查看更多</p><span>{sub_title}</span></a>
</div>
{/listinfo}
HTML;
                    diy('glass3_index_imagelist_031', 'imagelist', $TEMPLATE);
                    ?>
                </div>
                <div class="de_content_img_4">
                    <?php
                    $TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_4{background-image:url({pic})}</style>
<a href="{link}"><p>查看更多</p><span>{sub_title}</span></a>
{/listinfo}
HTML;
                    diy('glass3_index_imagelist_04', 'imagelist', $TEMPLATE);
                    ?>
                </div>
            </div>
        </div>
        <div class="hot-destination" id="hotRouteList3">
            <div class="de-title-line">
                    <?php
                    $template = <<<TEMPLATE
<ul>{links}<li><a href="{link}">{name}</a></li>{/links}</ul>
{title} >
TEMPLATE;

                    diy('glass3_index_fontli_1003', 'fontlist', $template);
                    ?>
            </div>
            <div class="de-content">
                <div class="de_content_img_5">
                    <?php
                    $TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_5{background-image:url({pic})}</style>
<a href="{link}"><p>查看更多</p><span>{sub_title}</span></a>
{/listinfo}
HTML;
                    diy('glass3_index_imagelist_05', 'imagelist', $TEMPLATE);
                    ?>
                </div>
                <div class="de_content_img_6">
                    <?php
                    $TEMPLATE = <<<HTML
{listinfo}
<style>.de_content_img_6_{aindex}{background-image:url({pic})}</style>
<div class="de_content_img_6_{aindex}">
<a href="{link}"><p>查看更多</p><span>{sub_title}</span></a>
</div>
{/listinfo}
HTML;
                    diy('glass3_index_imagelist_061', 'imagelist', $TEMPLATE);
                    ?>
                </div>
            </div>
        </div>
        <nav>
            <div class="micro-main-nav">
                <ul>
                    <li><a href="<?php echo site_url('mobile/line?mark=尾单');?>"><span><i><img src="images/2_1.png" /></i></span><br />
                            尾单</a></li>
                    <li><a href="<?php echo site_url('mobile/line?cat_id=3');?>"><span><i><img src="images/2_2.png" /></i></span><br />
                            出境游</a></li>
                    <li><a href="<?php echo $ctrip_hotel ;?>"><span><i><img src="images/2_3.png" /></i></span><br />
                            酒店</a></li>
                    <li><a href="<?php echo site_url('mobile/trips/index?category=1');?>"><span><i><img src="images/2_4.png" /></i></span><br />
                            美食</a></li>
                </ul>
            </div>
        </nav>
        <div class="banner-micro" id="banner">
            <div class="box">
<!--                <ul>-->
<!--                    <li><a href="#"><img src="images/banner_3.png" /></a></li>-->
<!--                </ul>-->
                    <?php
                    $TEMPLATE = <<<HTML
<ul>
{listinfo}
<li><a href="{link}"><img src="{pic}" /></a></li>
{/listinfo}
</ul>
HTML;
                    diy('glass_index_imagelist_0091', 'imagelist', $TEMPLATE);
                    ?>
            </div>
            <div class="m-b-icon"> </div>
        </div>

        <div class="hot-destination" id="hotRouteList">
            <div class="gonglve_title">
                <img src="images/gonglve.png" />
            </div>
            <div class="de-content">
                 <?php
                $TEMPLATE = <<<HTML
            {triplist}
<div class="content_xianlulist">
    <div class="content_xianlulist_img"><a href="{link}"><img src="{thumb}" /></a></div>
    <div class="content_xianlulist_txt_2">
        <div class="content_xianlulist_txt_2_mingcheng"><a href="{link}">{subject}</a></div>
        <div class="content_xianlulist_txt_2_zhekou">{short_desc}</div>
        <!--<div class="content_xianlulist_txt_2_jiage">{dist}</div>-->
    </div>
    <div class="content_xianlulist_txt_2_fenxiang">
        <input type="button" value="15" class="fenxiang" />
        <input type="button" value="15" class="pinglun"/>
        <input type="button" value="15" class="shoucang" />
    </div>
</div>
        {/triplist}
HTML;
                diy('glass3_triplist_003','triplist', $TEMPLATE);?>
<!--                <div class="content_xianlu_more">-->
<!--                    <a href="#"><img src="images/xia.png" /></a>-->
<!--                </div>-->
            </div>
        </div>
<!--        <nav>-->
<!--            <div class="micro-main-nav2">-->
<!--                <ul>-->
<!--                    <li><a href="--><?php //echo site_url()?><!--"><span><i><img src="images/3_1.png" /></i></span><br />-->
<!--                            主页</a></li>-->
<!--                    <li><a href="--><?php //echo site_url('/bendiyou')?><!--"><span><i><img src="images/3_2.png" /></i></span><br />-->
<!--                            当地</a></li>-->
<!--                    <li><a href="#"><span><i><img src="images/3_3.png" /></i></span><br />-->
<!--                            查找</a></li>-->
<!--                    <li><a href="#"><span><i><img src="images/3_4.png" /></i></span><br />-->
<!--                            我的</a></li>-->
<!--                </ul>-->
<!--            </div>-->
<!--        </nav>-->
    </section>

    <footer>
        <?php if($card_info = unserialize($_COOKIE['card_info'])){?>
            <div class="store-copy1">
                <p> <?php echo $_COOKIE['expert_company'] ? $_COOKIE['expert_company'] : $company?>(<?php echo $card_info['realname']?>)</p>
                <p> <?php echo $card_info['addr'] ? $card_info['addr']  : $company_address?></p>
                <p> <?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?></p>
            </div>
        <?php }?>
        <div class="store-copy">
            <?php
            @$user_id = $this->session->userdata('user_id');
            @$admin_user_id = $this->session->userdata('admin_user_id') ;
            if(!$user_id && !$admin_user_id){
                ?>
                <a href="<?php echo site_url('/mobile/member/login')?>">登陆</a>
                <a href="<?php echo site_url('/mobile/member/register')?>">注册</a>
            <?php }?>
            <p> 旅游许可证编号：<?php echo $licence?> <?php echo $site_record_num;?><br />
                <?php echo $company;?> 品牌授权<br>技术支持：浩楠网络科技</p>
        </div>
        <div class="store-tools">
            <ul>
                <li class="this"><a href="<?php echo site_url(INWECHAT&&$_COOKIE['from_card'] ? 'mobile/member/card/?eid='.$_COOKIE['from_card'] : 'mobile/index')?>"><i></i>
                        <p> 首页</p>
                    </a></li>
                <li><a href="tel:<?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?>"><i></i>
                        <p> 电话</p>
                    </a></li>
                <li><a href="<?php echo site_url('mobile/member/center');?>"><i></i>
                        <p> 我的</p>
                    </a></li>
                <li style="display:none;"><a href="#"><i></i>
                        <p> 留言</p>
                    </a></li>
                <li><a href="javascript:scroll(0,0);"><i></i>
                        <p> 顶部</p>
                    </a></li>
            </ul>
        </div>
    </footer>
</div>
<?php echo $sharehtml?>
</body>
</html>
